<html>
<head>
    <meta charset="UTF-8">
    <title>seachuser</title>
    <link rel="stylesheet" type="text/css" href="./bootstrap-3.3.5-dist/css/bootstrap.min.css">
</head>
<?php
$row=$data['user'];//读来uid对用用户的信息
?>
<body>
<form class="form-horizontal" method="post" action="admin.php?c=user&m=seacheruser" enctype="multipart/form-data"><!--文件上传必须要用post-->
<input type="hidden" name="uid" value="<?php echo $row['uid'];?>">
    <h2><center>搜索用户详细信息</center></h2>
<div class="form-group">
    <label for="inputEmail3" class="col-md-3 control-label">姓名</label>
    <div class="col-md-6">
      <?php echo $row['uname'];?>
    </div>
  </div>

  <div class="form-group">
    <label for="inputGender3" class="col-md-3 control-label">性别</label>
    <div class="col-md-6">
      <label class="radio-inline">
   <?php if($row['gender']==0)
           echo"男";
           else
           echo"女";
    ?>
    </label>
    </div>
    </div>

  <div class="form-group">
    <label for="inputDate3" class="col-md-3 control-label">生日</label>
    <div class="col-md-6">
      <?php echo $row['birthdate'];?><!--placeholder 站位-->
    </div>
    </div>

    <div class="form-group">
    <label for="inputHobby3" class="col-md-3 control-label">爱好</label>
    <div class="col-md-6">
      <label class="checkbox-inline">
     <?php echo $row['hobby'];?>
</label>
    </div>
    </div>

    <div class="form-group">
    <label for="inputDegree3" class="col-md-3 control-label">学历</label>
    <div class="col-md-6">
     <?php
    switch ($row['degree']) {
        case '1':
            echo"高中";
            break;
            case '2':
            echo"大学";
            break;
            case '3':
            echo"研究生";
            break;
            case '4':
            echo"博士生";
            break;
        
        default:
            echo "为选择学历";
            break;
    }
    ?>
    </div>
    </div>

    <div class="form-group">
    <label for="inputIntro3" class="col-md-3 control-label">自我介绍</label>
    <div class="col-md-6">
      <?php echo $row['intro']?></textarea>
    </div>
  </div>

    <div class="form-group">
    <label for="inputImg3" class="col-md-3 control-label">头像</label>
    <div class="col-md-6">
       头像:<img src="./posters/<?php echo $row['pic'];?>"width="80"height="80"alt="">;
    </div>
  </div>

    <div class="form-group">
    <div class="col-md-offset-3 col-md-6">
      <button type="submit" class="btn btn-default"><a href="admin.php?c=user&m=edituser&uid=<?php echo $row['uid'];?>">修改</a></button>
      <button type="submit" class="btn btn-default"><a href="admin.php?c=user&m=deluser&uid=<?php echo $row['uid'];?>">删除</a></button>
    </div>
  </div>

</form>
</body>
</html>
